package com.yf.dao;

import com.yf.entity.UserEntity;
import com.yf.vo.UserVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 用户Dao
 *
 * @author hxf
 * @email 505860922@qq.com
 * @date Tue Dec 11 16:26:15 CST 2018
 */
public interface UserDao extends BaseDao<UserEntity> {
    List<UserEntity> findByUnionId(String unionId);

    UserEntity login(@Param("phone") String phone, @Param("password") String password);

    //基本信息
    UserVO getInfo(Long userId);
}
